<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

    <!-- a标签#的作用 -->
    <a href=""></a>

    <script>

        /* CSS实现全图滚动 */
        /* overflow-y: scroll;
        scroll-behavior: smooth;
        scroll-snap-type: y mandatory; */

        /* scroll snap */
        /* scroll-snap-align: center; */

        // jq实现全图滚动
        // a标签配合
        // console.log(this.hash);
        // 注意hash获取到的是#... 所以要给id名

    </script>
</body>

</html>